//
//  BETechListCell.swift
//  BEGlobalOiler
//
//  Created by KKING on 16/9/20.
//  Copyright © 2016年 Bullseye Energy pte ltd. All rights reserved.
//

import UIKit

class BETechListCell: UITableViewCell {


    @IBOutlet weak var iconImgView: UIImageView!
    @IBOutlet weak var nameTf: UILabel!
    @IBOutlet weak var addressTf: UILabel!
    
        
    var techViewModel: BETechCellVM? {
        didSet{

            addressTf.text = techViewModel?.address
            nameTf.text = techViewModel?.name
            
            guard let urlString = techViewModel?.photo else {
                return
            }
            let url = URL(string: urlString)
            iconImgView.kf.setImage(with: url, placeholder: #imageLiteral(resourceName: "avatar_default_big"), options: [], progressBlock: nil, completionHandler: nil)
        }
    }
    
}
